package model;


 
import java.sql.Connection;
import java.sql.DriverManager;

 
public class BaseConnection {
	public static Connection getConnection() {
		Connection conn = null;
		try {
			Class.forName("com.mysql.jdbc.Driver");
			conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/my_wechat?useSSL=true","root","123456");
		}catch(Exception e) {
			e.printStackTrace();
		}
		return conn;
	}
//	public static void main(String[] args) {
//		Connection conn = BaseConnection.getConnection();
//		System.out.println(conn);
//	}
}
